Learn R Programming

fairml (version 0.6.1)

synthetic data sets: Synthetic data sets to test fair models

Description

Synthetic data sets used as test cases in the fairml package.

Usage

data(vur.test)
data(vuc.test)

Arguments

Format

Each data set is a list with following three elements:

  • y, the response variable;

  • X, a numeric matrix containing 3 predictors called X1, X2 and X3;

  • S, a numeric matrix containing 3 sensitive attributes called S1, S2 and S3.

Examples

Run this code
# NOT RUN {
data(vur.test)
sensitive.attributes.model = lm(y ~ S, data = vur.test)
summary(sensitive.attributes.model)$r.squared
overall.model = lm(y ~ X + S, data = vur.test)
summary(overall.model)$r.squared

data(vuc.test)
sensitive.attributes.model = glm(y ~ S, data = vuc.test, family = "binomial")
deviance(sensitive.attributes.model)
overall.model = glm(y ~ X + S, data = vuc.test, family = "binomial")
deviance(overall.model)
# }

Run the code above in your browser using DataLab